package com.maimao.model.goods.log;

import cn.hutool.db.PageResult;
import com.maimao.model.common.PageRequest;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 查询审核记录实体
 *
 * @author MaoLin Wang
 * @date 2021/3/23 2:51 下午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsCheckInput extends PageRequest {


    private static final long serialVersionUID = -848350458739404224L;

    @NotBlank(message = "审核记录ID不能为空")
    private String id;

    @NotBlank(message = "商品ID不能为空")
    private String goodsId;

    /**
     * 审核结果 1通过 2不通过
     */
    @NotNull(message = "审核结果不能为空")
    private Integer ok;

    private String brandId;

    private String brandName;

    private String goodsName;

    /**
     * 负责审核的管理员id
     */
    private String sysUserId;

    private Integer status;

    /**
     * 审核不同过需填写原因
     */
    private String failReason;

    /**
     * 开始时间 范围查询
     */
    private LocalDateTime fromTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;


    @Override
    public String toString() {
        return "GoodsCheckInput{" +
                "goodsId='" + goodsId + '\'' +
                ", brandId='" + brandId + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", sysUserId='" + sysUserId + '\'' +
                ", status=" + status +
                ", fromTime=" + fromTime +
                ", endTime=" + endTime +
                '}';
    }
}
